<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of categories_m
 *
 * @author QUYET
 */
class News_m extends CI_Model {

    //put your code here
    function __construct() {
        parent::__construct();
    }

    function get_users() {
        $data = $this->db->select('users.id, users_profiles.display_name as name')
                ->from('users,users_profiles')
                ->Where('users.id = users_profiles.user_id')
                ->get()
                ->result_array();
        return json_encode($data);
    }

}

?>
